﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HallGrid.ascx.cs" Inherits="badminton.Controls.HallGrid" %>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
	<tr>
		<td class="title">球馆总汇</td>
	</tr>
	<tr>
		<td>
            <asp:Repeater ID="Repeater1" runat="server" onitemdatabound="OnItemDataBind">
               <HeaderTemplate>  
                <table  class="thinframetable"  border="0" cellspacing="1" cellpadding="0" width="100%">
                <tr class="thinframetable">  
               </HeaderTemplate>  
               <ItemTemplate>  
                  <td width="50%">
                     <table border="0" cellspacing="0" cellpadding="0" width="100%">
                     	<tr>
                     		<td width="80px" align="center">
                                <table border="0" cellspacing="0" cellpadding="2" width="100%">
                                	<tr>
                                		<td align="center">
                                            <asp:Image ID="Image1" runat="server" ImageUrl="~/images/hallgrid/img.JPG" />
                                         </td>
                                	</tr>
                                	<tr>
                                		<td align="center" valign="middle" height="35">
                                            <%#Eval("name")%>
                                        </td>
                                	</tr>
                                </table>
                            </td>
                            <td valign="top">
                                <asp:Repeater ID="Repeater2" runat="server" onitemdatabound="OnItemDataBind2">
                                   <HeaderTemplate>  
                                    <table   width="100%"   border=0   align="center">
                                    <tr>  
                                   </HeaderTemplate>  
                                   <ItemTemplate>  
                                      <td width="50%">
                                       <a href='./pages/halldetail.aspx?hallid=<%#Eval("id")%>'><%#Eval("name")%></a>
                                      </td>  
                                   </ItemTemplate>  
                                   <FooterTemplate>  
                                       </tr></table>  
                                   </FooterTemplate>   
                                </asp:Repeater>
                            </td>
                     	</tr>
                     </table>
                  
                  </td>  
               </ItemTemplate>  
               <FooterTemplate>  
                   <asp:Literal ID="tdPlaceHolder" runat="server"></asp:Literal>
                   </tr></table>  
               </FooterTemplate>   
            </asp:Repeater>
        
        </td>
	</tr>
</table>
